public class HashCode {
    public static void main(String[] args) {
        String k1 = "Flink";
        String k2 = "Java";
        String k3 = "Redis";
        String k4 = "Sqoop";
        int numReduceTasks = 3;
        System.out.println(k1.hashCode() % numReduceTasks);
        System.out.println(k2.hashCode() % numReduceTasks);
        System.out.println(k3.hashCode() % numReduceTasks);
        System.out.println(k4.hashCode() % numReduceTasks);

    }
}
